<?php 
/* SVN FILE: $Id$ */
/* Jornada Test cases generated on: 2009-12-06 01:12:09 : 1260077109*/
App::import('Model', 'Jornada');

class JornadaTestCase extends CakeTestCase {
	var $Jornada = null;
	var $fixtures = array('app.jornada', 'app.agenda', 'app.tipo', 'app.bloqueo', 'app.evento', 'app.lista_espera', 'app.planilla_evento');

	function startTest() {
		$this->Jornada =& ClassRegistry::init('Jornada');
	}

	function testJornadaInstance() {
		$this->assertTrue(is_a($this->Jornada, 'Jornada'));
	}

	function testJornadaFind() {
		$this->Jornada->recursive = -1;
		$results = $this->Jornada->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Jornada' => array(
			'id'  => 1,
			'agenda_id'  => 1,
			'tipo_id'  => 1,
			'fecha_inicio'  => 'Lorem ',
			'fecha_fin'  => 'Lorem ',
			'estado'  => 'Lorem ipsum dolor sit ame',
			'usuario'  => 1,
			'fecha_accion'  => 'Lorem ipsum ',
			'orden'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>